// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.common.model.OptionItem;
import com.fowo.api.entity.DevelopmentTask;
import com.fowo.api.model.development.task.DevelopmentTaskItemVo;
import com.fowo.api.model.development.task.DevelopmentTaskSearchParamPo;
import com.fowo.api.model.development.task.DevelopmentTaskVo;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface DevelopmentTaskMapper extends BaseMapper<DevelopmentTask> {
  Page<DevelopmentTaskItemVo> pageSearch(
    @Param("page") Page page,
    @Param("search") DevelopmentTaskSearchParamPo search
  );
  List<OptionItem<DevelopmentTaskItemVo>> searchOptions(
    @Param("search") DevelopmentTaskSearchParamPo search
  );
  List<DevelopmentTaskItemVo> search(
    @Param("search") DevelopmentTaskSearchParamPo search
  );
  Date searchLastUpdateTime(
    @Param("search") DevelopmentTaskSearchParamPo search
  );
  /**
   * 搜索满足条件的所有记录的编号列表
   * @param search 搜索参数
   * @return 编号列表
   */
  List<Long> searchIds(@Param("search") DevelopmentTaskSearchParamPo search);
  /**
   * 搜索满足条件的记录数量
   * @param search 搜索参数
   * @return 记录数量
   */
  Long searchCount(@Param("search") DevelopmentTaskSearchParamPo search);
  Long getIdByTaskId(@Param("taskId") String taskId);

  List<Long> getIdsByTaskId(@Param("list") List<String> list);

  String getTaskIdById(@Param("id") Long id);

  List<Map<String, Object>> getTaskIdByIds(@Param("ids") List<Long> ids);
  DevelopmentTaskVo selectVoById(@Param("id") Long id);
  /**
   * 全部
   */
  List<DevelopmentTaskItemVo> allData(
    @Param("search") DevelopmentTaskSearchParamPo search
  );

  /**
   * 获取全部编号列表
   */
  List<Long> allDataIds(@Param("search") DevelopmentTaskSearchParamPo search);

  /**
   * 获取全部的总数
   */
  Long allDataCount(@Param("search") DevelopmentTaskSearchParamPo search);

  /**
   * 全部分页
   */
  Page<DevelopmentTaskItemVo> allDataPage(
    @Param("page") Page page,
    @Param("search") DevelopmentTaskSearchParamPo search
  );
  Date allDataLastUpdateTime(
    @Param("search") DevelopmentTaskSearchParamPo search
  );
  /**
   * 草稿
   */
  List<DevelopmentTaskItemVo> toBeConsidered(
    @Param("search") DevelopmentTaskSearchParamPo search
  );

  /**
   * 获取草稿编号列表
   */
  List<Long> toBeConsideredIds(
    @Param("search") DevelopmentTaskSearchParamPo search
  );

  /**
   * 获取草稿的总数
   */
  Long toBeConsideredCount(
    @Param("search") DevelopmentTaskSearchParamPo search
  );

  /**
   * 草稿分页
   */
  Page<DevelopmentTaskItemVo> toBeConsideredPage(
    @Param("page") Page page,
    @Param("search") DevelopmentTaskSearchParamPo search
  );
  Date toBeConsideredLastUpdateTime(
    @Param("search") DevelopmentTaskSearchParamPo search
  );
  /**
   * 已提交
   */
  List<DevelopmentTaskItemVo> submitted(
    @Param("search") DevelopmentTaskSearchParamPo search
  );

  /**
   * 获取已提交编号列表
   */
  List<Long> submittedIds(@Param("search") DevelopmentTaskSearchParamPo search);

  /**
   * 获取已提交的总数
   */
  Long submittedCount(@Param("search") DevelopmentTaskSearchParamPo search);

  /**
   * 已提交分页
   */
  Page<DevelopmentTaskItemVo> submittedPage(
    @Param("page") Page page,
    @Param("search") DevelopmentTaskSearchParamPo search
  );
  Date submittedLastUpdateTime(
    @Param("search") DevelopmentTaskSearchParamPo search
  );
  /**
   * 已派发
   */
  List<DevelopmentTaskItemVo> handOut(
    @Param("search") DevelopmentTaskSearchParamPo search
  );

  /**
   * 获取已派发编号列表
   */
  List<Long> handOutIds(@Param("search") DevelopmentTaskSearchParamPo search);

  /**
   * 获取已派发的总数
   */
  Long handOutCount(@Param("search") DevelopmentTaskSearchParamPo search);

  /**
   * 已派发分页
   */
  Page<DevelopmentTaskItemVo> handOutPage(
    @Param("page") Page page,
    @Param("search") DevelopmentTaskSearchParamPo search
  );
  Date handOutLastUpdateTime(
    @Param("search") DevelopmentTaskSearchParamPo search
  );
  /**
   * 已结束
   */
  List<DevelopmentTaskItemVo> complete(
    @Param("search") DevelopmentTaskSearchParamPo search
  );

  /**
   * 获取已结束编号列表
   */
  List<Long> completeIds(@Param("search") DevelopmentTaskSearchParamPo search);

  /**
   * 获取已结束的总数
   */
  Long completeCount(@Param("search") DevelopmentTaskSearchParamPo search);

  /**
   * 已结束分页
   */
  Page<DevelopmentTaskItemVo> completePage(
    @Param("page") Page page,
    @Param("search") DevelopmentTaskSearchParamPo search
  );
  Date completeLastUpdateTime(
    @Param("search") DevelopmentTaskSearchParamPo search
  );
  /**
   * 已撤回
   */
  List<DevelopmentTaskItemVo> withdrawn(
    @Param("search") DevelopmentTaskSearchParamPo search
  );

  /**
   * 获取已撤回编号列表
   */
  List<Long> withdrawnIds(@Param("search") DevelopmentTaskSearchParamPo search);

  /**
   * 获取已撤回的总数
   */
  Long withdrawnCount(@Param("search") DevelopmentTaskSearchParamPo search);

  /**
   * 已撤回分页
   */
  Page<DevelopmentTaskItemVo> withdrawnPage(
    @Param("page") Page page,
    @Param("search") DevelopmentTaskSearchParamPo search
  );
  Date withdrawnLastUpdateTime(
    @Param("search") DevelopmentTaskSearchParamPo search
  );
}
